package com.lj.ljminsu.bean;

public class UserThreadLocal {
    //把构造函数私有，外面不能new，只能通过下面两个方法操作
    private UserThreadLocal(){
    }
    private static final ThreadLocal<TjUser> LOCAL = new ThreadLocal<TjUser>();
    public static void set(TjUser user){
        LOCAL.set(user);
    }
    public static TjUser get(){
        return LOCAL.get();
    }
}
